package com.springboot.strategy.demo001.impl;

import com.springboot.strategy.demo001.IPriceStrategy;

/**
 * 处理mvip客户
 */
public class MvipPriceStrategy implements IPriceStrategy {
    public double getPrice(double originalPrice) {
        System.out.println("超级vip，满100打5折，不满100打6折");
        if(originalPrice >= 100){
            return originalPrice * 0.5;
        }
        return originalPrice * 0.6;
    }
}
